<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
//定时器 异步运行
function hello(){

alert("hello");
var t2 = window.setTimeout("hello()",1000); 
}

var t2 = window.setTimeout("hello()",1000); //定时器
//window.clearTimeout(t2);//去掉定时器
</script>
</head>
<body>

</div>

</body>
</html>